package com.android.task4;

public class Coordinates extends Object {
	protected double latitude;
	protected double longitude;
	protected double altitude;

	public Coordinates(final double latitude, final double longitude,
			final double altitude) {
		this.latitude = latitude;
		this.longitude = longitude;
		this.altitude = altitude;
	}

	public double getLatitude() {
		return this.latitude;
	}

	public double getLongitude() {
		return this.longitude;
	}

	public double getAltitude() {
		return this.altitude;
	}

	@Override
	public String toString() {
		return "Coordinates[lat=" + latitude + ",lon=" + longitude + ",alt="
				+ altitude + "]";
	}

	public void show() {
		System.out.println(this.toString());
	}
}

